<template>
  <div id=''>

  </div>
</template>

<script lang='ts'>
export default {
  name: 'vue',
}
</script>

<script lang='ts' setup>
import { ref } from 'vue';
const child = (arg: string) => {
  console.log('子组件的方法调用，参数为：', arg);
}
const reset = () => {
  console.log('数据已重置');
}
//暴露子组件内的方法child，reset
defineExpose({
  child,
  reset
})
</script>

<style lang='scss'></style>
